import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const goods: AppRouteModule = {
  path: '/goods',
  name: 'Goods',
  component: LAYOUT,
  redirect: '/goods/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'ep:goods-filled',
    title: t('routes.goods.goods'),
    orderNo: 2,
  },
  children: [
    {
      path: 'index',
      name: '商品列表',
      component: () => import('@/views/goods/index.vue'),
      meta: {
        title: t('商品列表'),
        hideMenu: true,
      },
    },
  ],
};
export default goods;
